import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 处方信息
 */
@Entity('student_prescription')
export class StudentPrescriptionEntity extends BaseEntity {
  @Index()
  @Column({ comment: '学生ID' })
  studentId: number;

  @Column({ comment: '备注', nullable: true, type: 'text' })
  remark: string;

  @Column({ comment: '推荐方案', default: '' })
  suggestPlan: string;

  @Column({ comment: '分层', default: 0 })
  layer: number;

  @Column({ comment: '分类', default: 0 })
  category: number;

  @Column({ comment: '依从性', default: 0 })
  compliance: number;

  @Column({ comment: '入组', default: 0 })
  inGroup: number;

  @Column({ comment: '决策人到场', default: 0 })
  decisionPerson: number;

  @Column({ comment: '预约ID', default: 0 })
  appointmentId: number;

  // 验光师
  @Column({ comment: '验光师', default: 0 })
  optometrist: number;

  @Column({ comment: '操作人ID', default: 0 })
  operatorId: number;

}
